Skip Source Exception
An exception thrown by a onSourceStarted implementation to signal that the currently starting content Source should be skipped by the playback engine.
When this exception is thrown from onSourceStarted
, the player will typically:
- Prevent the associated Source from being played or displayed.
- Not record the playback of this source in any play logs or analytics.
- Proceed to the next item in the playlist, if applicable, or follow standard playlist completion logic.
As a checked exception, it must be declared in the throws
clause of onSourceStarted.
See also
Constructors
Link copied to clipboard
constructor()
Constructs a new
SkipSourceException
with null
as its detail message.Constructs a new
SkipSourceException
with the specified detail message.Constructs a new
SkipSourceException
with the specified detail message and cause.Constructs a new
SkipSourceException
with the specified cause and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause
).